Leader or Majority: Why have one when you can have both? Improving Read Scalability in Raft-like consensus protocols

نویسندگان

  • Vaibhav Arora
  • Tanuj Mittal
  • Divyakant Agrawal
  • Amr El Abbadi
  • Xun Xue
  • Yanan Zhi
  • Jianfeng Zhu
چکیده

Consensus protocols are used to provide consistency guarantees over replicated data in a distributed system, and allow a set of replicas to work together as a coherent group. Raft is a consensus protocol that is designed to be easy to understand and implement. It is equivalent to Multi-Paxos in fault-tolerance and performance. It uses a leader based approach for coordinating replication to a majority. The leader regularly informs the followers of its existence using heartbeats. All reads and writes go through the leader to ensure strong consistency. However, read-heavy workloads increase load on the leader since the followers in Raft are maintained as cold standbys. Since the algorithm itself guarantees replication to at least a majority, why not exploit this fact to serve strongly consistent reads without a leader? We propose mechanisms to use quorum reads in Raft to offload the leader and better utilize the cluster. We integrate our approach in CockroachDB, an open-source distributed SQL database which uses Raft and leader leases, to compare our proposed changes. The evaluation results with the YCSB benchmark illustrate that quorum reads result in an increased throughput of the system under read-heavy workloads, as well as lower read/write latencies.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Consensus: Bridging Theory and Practice a Dissertation Submitted to the Department of Computer Science and the Committee on Graduate Studies of Stanford University in Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy

Distributed consensus is fundamental to building fault-tolerant systems. It allows a collection of machines to work as a coherent group that can survive the failures of some of its members. Unfortunately, the most common consensus algorithm, Paxos, is widely regarded as difficult to understand and implement correctly. This dissertation presents a new consensus algorithm called Raft, which was d...

متن کامل

The 21st century health care leader.

Any books that you read, no matter how you got the sentences that have been read from the books, surely they will give you goodness. But, we will show you one of recommendation of the book that you need to read. This the 21st century health care leader is what we surely mean. We will show you the reasonable reasons why you need to read this book. This book is a kind of precious book written by ...

متن کامل

Onm-21: General Principles of Collecting and Storing Cord Blood Stem Cell

Cord blood is the blood that remains in the umbilical cord and placenta following birth, which is usually discarded It contains red blood cells, white blood cells, platelets, and plasma, like blood. In addition, cord blood is a rich source of stem cells that may have potentially lifesaving benefits for your baby and family. The cord blood of baby serves as an abundant source of stem cells. Thes...

متن کامل

Reading in people with Down syndrome: "Visual route" or "phonological route"?

Background and Purpose: Many people with Down syndrome learn to read to some degree, but how they learn to read has been debated by researchers. Some researchers have argued that given the phonological deficits of people with Down syndrome and their stronger visual-spatial abilities, they rely on the "visual route" to learn to read, while others have shown that the "phonological route" is also ...

متن کامل

Fast Log Replication in Highly Available Data Store

Modern large-scale data stores widely adopt consensus protocols to achieve high availability and throughput. The recently proposed Raft algorithm has better understandability and widely implemented in large amount of open source projects. In these consensus algorithms including Raft, log replication is a common and frequently used operation which has significant impact on the system performance...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017